package com.yishusmt.mobsmt.service;

import com.yishusmt.mobsmt.dto.base.Result;
import com.yishusmt.mobsmt.dto.request.AddressReq;
import com.yishusmt.mobsmt.entity.ReceivingAddressEntity;

/**
 * 用户地址操作
 *
 * @author zhangyi
 * @date 2018/8/13 10:51
 */
public interface AddressService {

    /**
     * 添加地址
     *
     * @param addressReq
     * @return
     */
    Result add(AddressReq addressReq);

    /**
     *  删除地址
     *
     * @param addressId
     * @return
     */
    Result del(Long addressId);

    /**
     * 更新地址
     *
     * @param receivingAddressEntity
     * @return
     */
    Result update(ReceivingAddressEntity receivingAddressEntity);

    /**
     * 查询所有地址
     *
     * @param phone
     * @return
     */
    Result selectAllAddress(String phone);

    /**
     *  查看地址详细信息
     *
     * @param id
     * @return
     */
    Result selectAddressById(Long id);
}
